package com.bank6677.sync.csm.domain.old;

import java.math.BigDecimal;

public class LoanImpawnInfo {
    private Long impawnId;
    private Long applyId;
    private String impawnType;
    private Double impawnValue;
    private Integer impawnNum;
    private Double passbookValue;
    private String passbookBank;
    private Integer passbookYear;
    private String passbookOwnMan;
    private Double bondValue;
    private String bondBank;
    private Integer bondYear;
    private String bondOwnMan;
    private Double insuranceValue;
    private String insuranceBank;
    private Integer insuranceYear;
    private String insuranceOwnMan;
    private Double financialValue;
    private String financialBank;
    private Integer financialYear;
    private String financialOwnMan;
    private String otherName;
    private Double otherValue;
    private String otherBank;
    private Integer otherYear;
    private String otherOwnMan;
    public Long getImpawnId() {
        return impawnId;
    }

    public void setImpawnId(Long impawnId) {
        this.impawnId = impawnId;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public String getImpawnType() {
        return impawnType;
    }

    public void setImpawnType(String impawnType) {
        this.impawnType = impawnType == null ? null : impawnType.trim();
    }

    public Double getImpawnValue() {
        return impawnValue;
    }

    public void setImpawnValue(Double impawnValue) {
        this.impawnValue = impawnValue;
    }

    public Integer getImpawnNum() {
        return impawnNum;
    }

    public void setImpawnNum(Integer impawnNum) {
        this.impawnNum = impawnNum;
    }

    public Double getPassbookValue() {
        return passbookValue;
    }

    public void setPassbookValue(Double passbookValue) {
        this.passbookValue = passbookValue;
    }

    public String getPassbookBank() {
        return passbookBank;
    }

    public void setPassbookBank(String passbookBank) {
        this.passbookBank = passbookBank == null ? null : passbookBank.trim();
    }

    public Integer getPassbookYear() {
        return passbookYear;
    }

    public void setPassbookYear(Integer passbookYear) {
        this.passbookYear = passbookYear;
    }

    public String getPassbookOwnMan() {
        return passbookOwnMan;
    }

    public void setPassbookOwnMan(String passbookOwnMan) {
        this.passbookOwnMan = passbookOwnMan == null ? null : passbookOwnMan.trim();
    }

    public Double getBondValue() {
        return bondValue;
    }

    public void setBondValue(Double bondValue) {
        this.bondValue = bondValue;
    }

    public String getBondBank() {
        return bondBank;
    }

    public void setBondBank(String bondBank) {
        this.bondBank = bondBank == null ? null : bondBank.trim();
    }
    
    public Integer getBondYear() {
        return bondYear;
    }

    public void setBondYear(Integer bondYear) {
        this.bondYear = bondYear;
    }

    public String getBondOwnMan() {
        return bondOwnMan;
    }

    public void setBondOwnMan(String bondOwnMan) {
        this.bondOwnMan = bondOwnMan == null ? null : bondOwnMan.trim();
    }

    public Double getInsuranceValue() {
        return insuranceValue;
    }

    public void setInsuranceValue(Double insuranceValue) {
        this.insuranceValue = insuranceValue;
    }

    public String getInsuranceBank() {
        return insuranceBank;
    }

    public void setInsuranceBank(String insuranceBank) {
        this.insuranceBank = insuranceBank == null ? null : insuranceBank.trim();
    }

    public Integer getInsuranceYear() {
        return insuranceYear;
    }

    public void setInsuranceYear(Integer insuranceYear) {
        this.insuranceYear = insuranceYear;
    }

    public String getInsuranceOwnMan() {
        return insuranceOwnMan;
    }

    public void setInsuranceOwnMan(String insuranceOwnMan) {
        this.insuranceOwnMan = insuranceOwnMan == null ? null : insuranceOwnMan.trim();
    }

    public Double getFinancialValue() {
        return financialValue;
    }

    public void setFinancialValue(Double financialValue) {
        this.financialValue = financialValue;
    }

    public String getFinancialBank() {
        return financialBank;
    }

    public void setFinancialBank(String financialBank) {
        this.financialBank = financialBank == null ? null : financialBank.trim();
    }

    public Integer getFinancialYear() {
        return financialYear;
    }

    public void setFinancialYear(Integer financialYear) {
        this.financialYear = financialYear;
    }

    public String getFinancialOwnMan() {
        return financialOwnMan;
    }

    public void setFinancialOwnMan(String financialOwnMan) {
        this.financialOwnMan = financialOwnMan == null ? null : financialOwnMan.trim();
    }

    public String getOtherName() {
        return otherName;
    }

    public void setOtherName(String otherName) {
        this.otherName = otherName == null ? null : otherName.trim();
    }

    public Double getOtherValue() {
        return otherValue;
    }

    public void setOtherValue(Double otherValue) {
        this.otherValue = otherValue;
    }

    public String getOtherBank() {
        return otherBank;
    }

    public void setOtherBank(String otherBank) {
        this.otherBank = otherBank == null ? null : otherBank.trim();
    }

    public Integer getOtherYear() {
        return otherYear;
    }
    
    public void setOtherYear(Integer otherYear) {
        this.otherYear = otherYear;
    }

    public String getOtherOwnMan() {
        return otherOwnMan;
    }

    public void setOtherOwnMan(String otherOwnMan) {
        this.otherOwnMan = otherOwnMan == null ? null : otherOwnMan.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof LoanImpawnInfo)) {
            return false;
        }
        LoanImpawnInfo other = (LoanImpawnInfo) that;
        return this.getImpawnId() == null ? other == null : this.getImpawnId().equals(other.getImpawnId())
            && this.getApplyId() == null ? other == null : this.getApplyId().equals(other.getApplyId())
            && this.getImpawnType() == null ? other == null : this.getImpawnType().equals(other.getImpawnType())
            && this.getImpawnValue() == null ? other == null : this.getImpawnValue().equals(other.getImpawnValue())
            && this.getImpawnNum() == null ? other == null : this.getImpawnNum().equals(other.getImpawnNum())
            && this.getPassbookValue() == null ? other == null : this.getPassbookValue().equals(other.getPassbookValue())
            && this.getPassbookBank() == null ? other == null : this.getPassbookBank().equals(other.getPassbookBank())
            && this.getPassbookYear() == null ? other == null : this.getPassbookYear().equals(other.getPassbookYear())
            && this.getPassbookOwnMan() == null ? other == null : this.getPassbookOwnMan().equals(other.getPassbookOwnMan())
            && this.getBondValue() == null ? other == null : this.getBondValue().equals(other.getBondValue())
            && this.getBondBank() == null ? other == null : this.getBondBank().equals(other.getBondBank())
            && this.getBondYear() == null ? other == null : this.getBondYear().equals(other.getBondYear())
            && this.getBondOwnMan() == null ? other == null : this.getBondOwnMan().equals(other.getBondOwnMan())
            && this.getInsuranceValue() == null ? other == null : this.getInsuranceValue().equals(other.getInsuranceValue())
            && this.getInsuranceBank() == null ? other == null : this.getInsuranceBank().equals(other.getInsuranceBank())
            && this.getInsuranceYear() == null ? other == null : this.getInsuranceYear().equals(other.getInsuranceYear())
            && this.getInsuranceOwnMan() == null ? other == null : this.getInsuranceOwnMan().equals(other.getInsuranceOwnMan())
            && this.getFinancialValue() == null ? other == null : this.getFinancialValue().equals(other.getFinancialValue())
            && this.getFinancialBank() == null ? other == null : this.getFinancialBank().equals(other.getFinancialBank())
            && this.getFinancialYear() == null ? other == null : this.getFinancialYear().equals(other.getFinancialYear())
            && this.getFinancialOwnMan() == null ? other == null : this.getFinancialOwnMan().equals(other.getFinancialOwnMan())
            && this.getOtherName() == null ? other == null : this.getOtherName().equals(other.getOtherName())
            && this.getOtherValue() == null ? other == null : this.getOtherValue().equals(other.getOtherValue())
            && this.getOtherBank() == null ? other == null : this.getOtherBank().equals(other.getOtherBank())
            && this.getOtherYear() == null ? other == null : this.getOtherYear().equals(other.getOtherYear())
            && this.getOtherOwnMan() == null ? other == null : this.getOtherOwnMan().equals(other.getOtherOwnMan());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getImpawnId() != null) {
            hash *= getImpawnId().hashCode();
        }
        if (getApplyId() != null) {
            hash *= getApplyId().hashCode();
        }
        if (getImpawnType() != null) {
            hash *= getImpawnType().hashCode();
        }
        if (getImpawnValue() != null) {
            hash *= getImpawnValue().hashCode();
        }
        if (getImpawnNum() != null) {
            hash *= getImpawnNum().hashCode();
        }
        if (getPassbookValue() != null) {
            hash *= getPassbookValue().hashCode();
        }
        if (getPassbookBank() != null) {
            hash *= getPassbookBank().hashCode();
        }
        if (getPassbookYear() != null) {
            hash *= getPassbookYear().hashCode();
        }
        if (getPassbookOwnMan() != null) {
            hash *= getPassbookOwnMan().hashCode();
        }
        if (getBondValue() != null) {
            hash *= getBondValue().hashCode();
        }
        if (getBondBank() != null) {
            hash *= getBondBank().hashCode();
        }
        if (getBondYear() != null) {
            hash *= getBondYear().hashCode();
        }
        if (getBondOwnMan() != null) {
            hash *= getBondOwnMan().hashCode();
        }
        if (getInsuranceValue() != null) {
            hash *= getInsuranceValue().hashCode();
        }
        if (getInsuranceBank() != null) {
            hash *= getInsuranceBank().hashCode();
        }
        if (getInsuranceYear() != null) {
            hash *= getInsuranceYear().hashCode();
        }
        if (getInsuranceOwnMan() != null) {
            hash *= getInsuranceOwnMan().hashCode();
        }
        if (getFinancialValue() != null) {
            hash *= getFinancialValue().hashCode();
        }
        if (getFinancialBank() != null) {
            hash *= getFinancialBank().hashCode();
        }
        if (getFinancialYear() != null) {
            hash *= getFinancialYear().hashCode();
        }
        if (getFinancialOwnMan() != null) {
            hash *= getFinancialOwnMan().hashCode();
        }
        if (getOtherName() != null) {
            hash *= getOtherName().hashCode();
        }
        if (getOtherValue() != null) {
            hash *= getOtherValue().hashCode();
        }
        if (getOtherBank() != null) {
            hash *= getOtherBank().hashCode();
        }
        if (getOtherYear() != null) {
            hash *= getOtherYear().hashCode();
        }
        if (getOtherOwnMan() != null) {
            hash *= getOtherOwnMan().hashCode();
        }
        return hash;
    }
}